<!DOCTYPE html>   
<!--
==========================================================================
LV自动生成新增页面代码,只生成一次,按需修改.
生成日期：2024-02-28 14:21:50 +0800 CST
生成路径: template/mywork/params/add.html
生成人：lv
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content   ibox-content">
    <form class="form-horizontal m" id="form-params-add">       
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">参量号：</label>
                    <div class="col-sm-8">
                        <input name="paramNo" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">参量名称：</label>
                    <div class="col-sm-8">
                        <input name="paramName" class="form-control" type="text" required>
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">参量类型：</label>
                    <div class="col-sm-8">
                        <select name="paramType" class="form-control m-b" >
                            <option value="">请选择</option>
                            <option value="ai">遥测（AI）</option>
                            <option value="di">遥信（DI）</option>
                            <option value="ao">遥调（AO）</option>
                            <option value="do">遥控（DO）</option>
                        </select>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div> 
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">单位：</label>
                    <div class="col-sm-8">
                        <input name="unit" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注信息：</label>
                    <div class="col-sm-8">
                        <input name="remark" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">监控类型：</label>
                    <div class="col-sm-8">
                        <input name="monitorTypeId" class="form-control" type="text" >
                    </div>
                </div>
                
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript">
    var prefix = ctx + "/mywork/params";
    $("#form-params-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-params-add').serialize());
        }
    }
                     
    $("input[name='createTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });   
    
</script>
</body>
</html>